home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
linux-bo
/
etherboo.000
/
etherboo
/
etherboot-2.0
/
netboot-freebsd
/
Makefile.16
< prev
next >
Wrap
Makefile
|
1996-06-30
|
4KB
|
146 lines
# Makefile,v 1.4 1994/12/31 17:16:49 jkh Exp
#
# Makefile for NETBOOT
#
# Basic Options:
# -DVERSION - Set the version string (but see comment in main.c)
# -DASK_BOOT - Ask "Boot from Network (Y/N) ?" at startup
# -DROMSIZE - Size of EPROM - Must be set (even for .COM files)
# -DRELOC - Relocation address (usually 0x90000)
# ^^^^^^^
# has to be changed to 0x98000 for loading Linux kernel
# -DPRIORIZEBOOTPKERNEL
# - first honor the kernel name of the BOOTP reply
# before trying defaults
# -DBOOTPKERNELONLY
# - never use TFTP for loading default files; the
# BOOTP reply has to set a valid kernel name
#
# NS8390 Options:
# -DINCLUDE_WD - Include Western Digital/SMC support
# -DINCLUDE_NE - Include NE1000/NE2000 support
# -DINCLUDE_3COM - Include 3c503 support
# -D_3COM_USE_AUI - Disable transceiver on 3c503 by default
# -DNE_BASE - Base I/O address for NE1000/NE2000
# -DNE_NOSCAN - Do not try to automatically find NEx000 I/O address
# -D_3COM_BASE - Base I/O address for 3c503
# -DWD_DEFAULT_MEM- Default memory location for WD/SMC cards
# XXX nothing depends on this Makefile so you must run `make clean' after
# changing an option.
#
CC= bcc -0 -ansi
LD= ld86 -0
GCC= gcc
PROG= size86 objdump86 makerom ne.com ne.rom wd.com wd.rom \
3c503.com 3c503.rom 3c509.com 3c509.rom
# Order is very important on the SRCS line for this prog
SRCS= start16.S main.c linuxloader.c misc.c bootmenu.c
OBJS= start16.o main.o linuxloader.o misc.o bootmenu.o
ROBJS= start16.ro main.o linuxloader.o misc.o bootmenu.o
TOBJS= start16.ro test.o misc.o
CFLAGS= -DVERSION=\"2.0\" -DROMSIZE=${ROMSIZE} -DRELOC=${RELOCADDR}
CFLAGS+= -DPRIORIZEBOOTPKERNEL
WDFLAGS= -DINCLUDE_WD -DWD_DEFAULT_MEM=0xD0000
T503FLAGS= -DINCLUDE_3COM -D_3COM_BASE=0x300
T509FLAGS=
NEFLAGS= -DINCLUDE_NE -DNE_BASE=0x300
CLEANFILES= ${OBJS}
CLEANFILES+= size86 objdump86 makerom start16.ro wd.o 3c503.o ne.o 3c509.o test.o *.com *.rom *.tmp *.tst
ASFLAGS= #-A-l -A$*.rl
LDFLAGS+=
ROMSIZE=16384
RELOCADDR=0x98000
.SUFFIXES: .ro .tst .rom .com
all: ${PROG}
clean:
${RM} -rf ${CLEANFILES}
.S.ro:
${CC} ${CFLAGS} ${ASFLAGS} -DBOOTROM -o $@ -c $<
.S.o:
${CC} ${CFLAGS} -o $@ -c $<
.o.tst:
${LD} ${LDFLAGS} -o $*.tmp ${TOBJS} $*.o libbcc.a
size86 $*.tmp
objdump86 $*.tmp > $@
makerom $@
.o.rom:
${LD} ${LDFLAGS} -o $*.tmp ${ROBJS} $*.o libbcc.a
size86 $*.tmp
objdump86 $*.tmp > $@
makerom $@
.o.com:
${LD} ${LDFLAGS} -o $*.tmp ${OBJS} $*.o libbcc.a
size86 $*.tmp
objdump86 $*.tmp > $@
$(OBJS): linuxdef.h netboot.h
wd.o: ns8390.c linuxdef.h netboot.h
${CC} $(CFLAGS) $(WDFLAGS) -o $@ -c $<
3c503.o: ns8390.c linuxdef.h netboot.h
${CC} $(CFLAGS) $(T503FLAGS) -o $@ -c $<
3c509.o: 3c509.c linuxdef.h netboot.h
${CC} $(CFLAGS) $(T509FLAGS) -o $@ -c $<
ne.o: ns8390.c linuxdef.h netboot.h
${CC} $(CFLAGS) $(NEFLAGS) -o $@ -c $<
makerom: makerom.c
${GCC} -o $@ -DROMSIZE=${ROMSIZE} makerom.c
size86: size86.c
${GCC} -o $@ size86.c
objdump86: objdump86.c
${GCC} -o $@ objdump86.c
wd.tst: makerom start16.ro ${TOBJS} wd.o
3c503.tst: makerom start16.ro ${TOBJS} 3c503.o libbcc.a
ne.tst: makerom start16.ro ${TOBJS} ne.o libbcc.a
3c509.tst: makerom start16.ro ${TOBJS} 3c509.o libbcc.a
wd.rom: makerom start16.ro ${ROBJS} wd.o libbcc.a
3c503.rom: makerom start16.ro ${ROBJS} 3c503.o libbcc.a
ne.rom: makerom start16.ro ${ROBJS} ne.o libbcc.a
3c509.rom: makerom start16.ro ${ROBJS} 3c509.o libbcc.a
wd.com: start16.ro ${OBJS} wd.o libbcc.a
3c503.com: start16.ro ${OBJS} 3c503.o libbcc.a
ne.com: start16.ro ${OBJS} ne.o libbcc.a
3c509.com: start16.o ${OBJS} 3c509.o libbcc.a
patch:
-for i in 3c509.c 3c509.h bootmenu.c linuxdef.h linuxloader.c \
main.c makerom.c misc.c netboot.h ns8390.c ns8390.h rpc.c \
README.16 Makefile.16 Makefile.32 start16.S a.out.h size86.c objdump86.c ; \
do \
diff -c ../netboot-freebsd-old/$$i $$i ; \
done > ../patches/patch1.1-2.0
-for i in test.c ; \
do \
diff -c /dev/null $$i ; \
done >> ../patches/patch1.1-2.0